s = input().split()
ans = ""
for i in s:
	i = i.lower()
	if i != "of" and i != "the" and i != "for" and i != "and":
		ans = ans + i[0]

ans = ans.upper()
print(ans)